﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace STF.Blog.Model
{
    /// <summary>
    /// 友情链接表
    /// </summary>
    public class FriendLink:BaseEntity
    {
        [Required(ErrorMessage ="{0}不能为空")]
        [StringLength(50),Column(TypeName ="varchar(50)")]
        [Display(Name ="链接名称")]
        public string Title { get; set; }

        [Required(ErrorMessage = "{0}不能为空")]
        [StringLength(255), Column(TypeName = "varchar(255)")]
        [Display(Name = "链接")]
        public string Link { get; set; }

    }
}
